package com.zygh.lz.entity.app;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;


/**
 * @author jhaol
 */
@Data
@ApiModel(value = "AppPark对象", description = "")
public class AppPark implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "停车场编号")
    @TableField("`code`")
    private Integer code;

    @ApiModelProperty(value = "停车场名称")
    private String name;

    @ApiModelProperty(value = "停车场地址")
    private String address;

    @ApiModelProperty(value = "停车场联系电话")
    private String contactWay;


    @ApiModelProperty(value = "停车场坐标范围", hidden = true)
    private String area;

    @ApiModelProperty(value = "所属支队id")
    private Integer deptId;

    @ApiModelProperty(value = "支队咨询电话")
    private String hotline;


    @ApiModelProperty(value = "申请人警号")
    private String userNum;

    @ApiModelProperty(value = "申请人姓名")
    private String applicantName;

    @ApiModelProperty(value = "审批人")
    private String auditor;

    @ApiModelProperty(value = "签名照片")
    private String signPhoto;

    @ApiModelProperty(value = "0待审批 1审批通过 2审批驳回")
    private Integer state;

    @ApiModelProperty(value = "审批意见")
    private String remark;

    @ApiModelProperty(value = "0拖车司机 1警员")
    private Integer userState;

    @ApiModelProperty(value = "0未删除 1已删除")
    private Integer isDel;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private String gmtCreate;
    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String gmtUpdate;

    @ApiModelProperty(value = "标识0：未同步  1：同步")
    private Integer signboard;

    //------------------------------------------------------------------- 非表字段


    @ApiModelProperty(value = "部门名称")
    @TableField(exist = false)
    private String deptName;

    @ApiModelProperty(value = "停车场坐标")
    @TableField(exist = false)
    private List<AppParkArea> parkAreaList;


}
